using System;
using MediatR;
using RBAC.ErrorCode;
using RBAC.Read.Api.Application.Dto.Quality;

namespace RBAC.Read.Api.Application.Command.ArrivalInspection
{
    /// <summary>
    /// 到货检验主表分页查询（条件可选）
    /// </summary>
    public class GetArrivalInspectionListCommand : IRequest<APIPaging<ArrivalInspectionListDto>>
    {
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 10;

        /// <summary>按主键精确查询（可选）</summary>
        public long? Id { get; set; }

        /// <summary>检验主题（模糊）</summary>
        public string? Subject { get; set; }
        /// <summary>检验单号（模糊）</summary>
        public string? DocCode { get; set; }
        /// <summary>检验日期-开始</summary>
        public DateTime? InspectionDateStart { get; set; }
        /// <summary>检验日期-结束</summary>
        public DateTime? InspectionDateEnd { get; set; }
        /// <summary>检验人员（模糊）</summary>
        public string? Inspector { get; set; }
        /// <summary>采购单号（模糊）</summary>
        public string? PurchaseOrderNo { get; set; }
    }
}
